package com.example.interfaces.defaultMethods;

public class Bag implements TestInterface{

    private int num;

    public Bag(int num) {
        this.num = num;
    }

    @Override
    public void add() {
        this.num ++;
    }

    @Override
    public String toString() {
        return "Bag{" +
                "num=" + num +
                '}';
    }
}
